package com.自动装配;

import com.shuxingzhuu.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestTTT {
    @Test
    public  void  test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean2.xml");
        Car car = (Car) context.getBean("car1");
        System.out.println(car.toString());
    }

}
